package com.hyou.springboot2.dto.form;

import javax.validation.constraints.NotBlank;

import com.hyou.springboot.base.BaseForm;

/**
 * 登录请求表单
 * 
 * @author FengChangshuo
 * @version 2.1.2 2018-11-01 14:41:08 初始创建
 */
public class LoginForm extends BaseForm {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 5298792082499733989L;
    
    /**
     * 登录账号
     */
    @NotBlank(message = "账号不能为空")
    private String userName;
    
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * @return 登录账号
     */
    public String getUserName() {
        return this.userName;
    }

    /**
     * @param userName 登录账号
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return 密码
     */
    public String getPassword() {
        return this.password;
    }

    /**
     * @param password 密码
     */
    public void setPassword(String password) {
        this.password = password;
    }
    
}
